﻿using System;

using System.Runtime.Serialization;
using MaLu.Data;

namespace Malu.Entity
{

    [Serializable]
    [DataContract(Name = "SSick")]
    [Table("SSick", Info = "")]
    public class Sicking : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("name", DataType.VarChar, Length = 50)]
        public string name { get; set; }



        [DataMember]
        [Column("gender", DataType.VarChar, Length = 2)]
        public string gender { get; set; }

        [DataMember]
        [Column("age", DataType.Int32, Length = 4)]
        public int age { get; set; }

        [DataMember]
        [Column("sickname", DataType.VarChar, Length = 50)]
        public string sickname { get; set; }


        [DataMember]
        [Column("dept", DataType.VarChar, Length = 50)]
        public string dept { get; set; }

        [DataMember]       
        [Column("IsTownFamliy", DataType.VarChar, Length = 2)]
        public string IsTownFamliy { get; set; }

        [DataMember]
      
        [Column("IsVillageFamliy", DataType.VarChar, Length = 2)]
        public string IsVillageFamliy { get; set; }

        [DataMember]
       
        [Column("IsTownMedical", DataType.VarChar, Length = 2)]
        public string IsTownMedical { get; set; }

        [DataMember]
     
        [Column("IsVillageMedical", DataType.VarChar, Length = 2)]
        public string IsVillageMedical { get; set; }

        [DataMember]
        [Column("districtmoney", DataType.Float)]
        public float districtmoney { get; set; }

        [DataMember]
        [Column("appliedmoney", DataType.Float)]
        public float appliedmoney { get; set; }

        [DataMember]
        [Column("townmoney", DataType.Float)]
        public float townmoney { get; set; }

        [DataMember]
        [Column("belongto", DataType.VarChar, Length = 50)]
        public string belongto { get; set; }

       

        [DataMember]
        [Column("year", DataType.Int32, Length = 4)]
        public int year { get; set; }

        [DataMember]
        [Column("month", DataType.Int32, Length = 4)]
        public int month { get; set; }

        [DataMember]
        [Column("money", DataType.Float)]
        public float money { get; set; }

       
    }
}
